Matthias Clasen [Mon, 15 Oct 2012 09:56:41 +0000 (05:56 -0400)]
GtkTreeViewAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Mon, 15 Oct 2012 09:52:04 +0000 (05:52 -0400)]
GtkToplevelAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
This also required removing access to GtkToplevelAccessible innards
from the GtkWindowAccessible implementation.
Matthias Clasen [Mon, 15 Oct 2012 09:31:09 +0000 (05:31 -0400)]
GtkTextViewAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Mon, 15 Oct 2012 01:21:34 +0000 (21:21 -0400)]
GtkTextCellAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Mon, 15 Oct 2012 01:07:46 +0000 (21:07 -0400)]
GtkRendererCellAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
This also required removing access to GtkRendererCellAccessible innards
from various cell accessible implementations.
Matthias Clasen [Mon, 15 Oct 2012 00:48:30 +0000 (20:48 -0400)]
GtkRadioMenuItemAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Mon, 15 Oct 2012 00:18:57 +0000 (20:18 -0400)]
GtkRadioButtonAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Mon, 15 Oct 2012 00:15:28 +0000 (20:15 -0400)]
GtkNotebookPageAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Mon, 15 Oct 2012 00:09:58 +0000 (20:09 -0400)]
GtkNotebookAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Mon, 15 Oct 2012 00:01:37 +0000 (20:01 -0400)]
GtkMenuItemAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Sun, 14 Oct 2012 23:55:59 +0000 (19:55 -0400)]
GtkLinkButtonAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Sun, 14 Oct 2012 23:51:14 +0000 (19:51 -0400)]
GtkLabelAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Sun, 14 Oct 2012 23:43:47 +0000 (19:43 -0400)]
GtkImageCellAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Sun, 14 Oct 2012 23:38:08 +0000 (19:38 -0400)]
GtkImageAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Sun, 14 Oct 2012 20:06:08 +0000 (16:06 -0400)]
GtkIconViewAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Sun, 14 Oct 2012 19:59:58 +0000 (15:59 -0400)]
GtkEntryAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Sun, 14 Oct 2012 19:52:29 +0000 (15:52 -0400)]
GtkContainerCellAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
This also required removing access to GtkContainerCellAccessible
innards from the GtkCellAccessible implementation.
Matthias Clasen [Sun, 14 Oct 2012 19:11:17 +0000 (15:11 -0400)]
GtkContainerAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
This also required removing access to GtkContainerAccessible innards
from the GtkMenuItemAccessible implementation.
Stefano Facchini [Sun, 14 Oct 2012 09:53:15 +0000 (11:53 +0200)]
Matthias Clasen [Sun, 14 Oct 2012 06:47:22 +0000 (02:47 -0400)]
GtkComboBoxAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Sun, 14 Oct 2012 06:40:20 +0000 (02:40 -0400)]
GtkBooleanCellAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Matthias Clasen [Sun, 14 Oct 2012 06:39:32 +0000 (02:39 -0400)]
GtkArrowAccessible: add a private struct
Move instance fields to a private struct, in preparation
for installing a11y headers.
Yuri Myasoedov [Sat, 13 Oct 2012 10:32:34 +0000 (14:32 +0400)]
Fixed Russian translation: Bug 646221
Benjamin Otte [Fri, 12 Oct 2012 15:45:11 +0000 (17:45 +0200)]
tests: Add test for latest bugfix
Benjamin Otte [Fri, 12 Oct 2012 15:36:28 +0000 (17:36 +0200)]
cssvalue: Print an error when failing to parse background-position
... in the case where a completely invalid value was used.
Patrick Welche [Wed, 10 Oct 2012 23:09:14 +0000 (00:09 +0100)]
test(1) uses '=' to test if strings are identical
https://bugzilla.gnome.org/show_bug.cgi?id=685996
Kjartan Maraas [Thu, 11 Oct 2012 18:52:47 +0000 (20:52 +0200)]
Updated Norwegian bokmål translation.
Piotr Drąg [Wed, 10 Oct 2012 20:40:58 +0000 (22:40 +0200)]
Updated POTFILES.skip
Cosimo Cecchi [Wed, 10 Oct 2012 17:43:17 +0000 (13:43 -0400)]
Add a visual test for vertical inline toolbars
Cosimo Cecchi [Wed, 10 Oct 2012 15:36:28 +0000 (11:36 -0400)]
toolbar: don't forget to set orientable style classes
So that themes can select for vertical toolbars.
Pavol Klačanský [Wed, 10 Oct 2012 11:41:11 +0000 (12:41 +0100)]
Updated Slovak translation
OKANO Takayoshi [Wed, 10 Oct 2012 05:23:36 +0000 (14:23 +0900)]
[l10n] Update Japanese translation
Kristian Rietveld [Thu, 4 Oct 2012 07:06:01 +0000 (09:06 +0200)]
quartz: Actually use the window background PATTERN color
Before we used a window's background color, which resulted in corrupted
display in some cases, presumably because we didn't reset the active
pattern. This patch seems to eliminate the observed corruption.
(cherry picked from commit
0e42cf81f1dad319489e447c6c4e640bed2ab915)
Cosimo Cecchi [Mon, 8 Oct 2012 22:44:09 +0000 (18:44 -0400)]
gdk: only emit display-opened after the default display has been set
This avoids a case where the display has been opened, but calling
gdk_display_get_default() in the callback doesn't work.
Reviewed-by: Benjamin Otte <otte@redhat.com>
Luca Ferretti [Sun, 7 Oct 2012 19:18:05 +0000 (21:18 +0200)]
l10n: Updated Italian translation
Yuri Myasoedov [Sun, 7 Oct 2012 13:16:09 +0000 (17:16 +0400)]
Fixed Russian translation
Benjamin Otte [Sat, 6 Oct 2012 19:54:10 +0000 (15:54 -0400)]
cssimage: Fix gradient start/end computation
This computation is only supposed to happen for repeating gradients, not
for all of them.
Benjamin Otte [Fri, 5 Oct 2012 16:49:39 +0000 (18:49 +0200)]
animations: Start transitions from the current value
... instead of from the intrinsic value. This way, we respect running
animations.
Note that the concept of "reversing" transitions is not implemented yet.
Benjamin Otte [Fri, 5 Oct 2012 16:45:37 +0000 (18:45 +0200)]
animations: Don't set animated values for finished transitions
Otherwise, that value will never get reset and remain frozen in time.
This is problematic for example when the value is inherited and the
parent changes the value.
Benjamin Otte [Fri, 5 Oct 2012 14:46:49 +0000 (16:46 +0200)]
x11: Put function in header, don't declare them extern
Benjamin Otte [Fri, 5 Oct 2012 14:46:36 +0000 (16:46 +0200)]
gdk: Ignore headers for declared functions
Cosimo Cecchi [Thu, 4 Oct 2012 04:58:29 +0000 (00:58 -0400)]
scrolledwindow: fix wrong allocation of padding and borders
When positioning the scrollbar we were doing several miscalculations
when accounting for CSS paddings and borders. This also fixes a number
of problems with RTL and when scrollbars-within-bevel is FALSE.
https://bugzilla.gnome.org/show_bug.cgi?id=685449
Khoem Sokhem [Wed, 3 Oct 2012 15:47:46 +0000 (17:47 +0200)]
[l10n] Added Khmer translation
Benjamin Otte [Tue, 2 Oct 2012 17:30:50 +0000 (19:30 +0200)]
gtk/tests: Fix for -Wmissing-declarations
I'm adding a bunch of fixes for gcc complaining about
-Wmissing-declarations after finding a bunch of cases today where I
had forgotten to make functions static in the CSS code.
This patch fixes the tests in gtk/tests.
After this last patch, the gtk/ subdir should now compile without
warnings when this flag is enabled.
Benjamin Otte [Tue, 2 Oct 2012 17:30:02 +0000 (19:30 +0200)]
cssimage: Add transition code for linear-gradient()
This ensures feature-parity with the CSS spec and the -gtk-gradient()
notation.
Benjamin Otte [Tue, 2 Oct 2012 17:27:25 +0000 (19:27 +0200)]
gtk: Put private functions in headers and include those
This is part of a bunch of fixes for gcc complaining about
-Wmissing-declarations.
It puts functions into headers and includes those headers both where the
functions are defined and where they function are used.
Benjamin Otte [Tue, 2 Oct 2012 17:25:51 +0000 (19:25 +0200)]
gtk: Move gtk_menu_is_empty() function to only user
The function was private and only used by gtkmenuitem.c.
Part of a bunch of fixes for gcc complaining about
-Wmissing-declarations.
Benjamin Otte [Tue, 2 Oct 2012 17:23:29 +0000 (19:23 +0200)]
gtk: Make functions static that don't need to be non-static
Also remove the starting underscore from function names where
appropriate, as those functions are static now and not exported anymore.
This is part of a bunch of fixes for gcc complaining about
-Wmissing-declarations.
Benjamin Otte [Tue, 2 Oct 2012 17:19:50 +0000 (19:19 +0200)]
gtk: Add get_type() function declarations for private objects
I'm adding a bunch of fixes for gcc complaining about
-Wmissing-declarations.
This set of patches makes private classes in gtk/*.c that use
G_DEFINE_TYPE() safe by adding definitions for the get_type() function
that can't be made static.
Benjamin Otte [Tue, 2 Oct 2012 17:13:30 +0000 (19:13 +0200)]
a11y: Fix for -Wmissing-declarations
I'll add a bunch of fixes for gcc complaining about
-Wmissing-declarations after finding a bunch of cases today where I had
forgotten to make functions static in the CSS code.
A thorn in those patches is G_DEFINE_TYPE() which doesn't allow making
the get_type() function static, so I added definitions for that function
above the G_DEFINE_TYPE().
After those patches, GTK should compile without warnings when this flag
is enabled.
Benjamin Otte [Tue, 2 Oct 2012 15:21:11 +0000 (17:21 +0200)]
tests: Remove gdk-pixbuf hacks
The code used to check for uninstalled gdk-pixbuf. Since gdk-pixbuf is
an external library these days, those checks aren't necessary anymore.
Rui Matos [Fri, 21 Sep 2012 03:11:43 +0000 (05:11 +0200)]
window: Delay showing auto mnemonics on focus in
Just as in
ed7a417dcbe3f0723e5dcef07d4bb566d77b7205 we don't want to
show auto mnemonics immediately but only after a short delay. In
particular this allows to capture screenshots without visible
mnemonics.
https://bugzilla.gnome.org/show_bug.cgi?id=684517
Tristan Van Berkom [Tue, 2 Oct 2012 14:11:39 +0000 (23:11 +0900)]
Amended documentation for gtk_widget_set_size_request().
It seems we missed updating this since GTK+3, widgets cannot be
allocated less than the size they requested in thier request
phase, and explicit sizes are used only to grow the size request.
Benjamin Otte [Tue, 2 Oct 2012 12:11:18 +0000 (14:11 +0200)]
cssimage: Implement proper cross-fades for gradients
This is intended mainly to speed up the current situation with spinners
on debug kernels. Because we now don't use a cross-fade to draw the
transition but instead have a real gradient that we draw, we don't need
to use the slow cross-fade code.
https://bugzilla.gnome.org/show_bug.cgi?id=684639
Benjamin Otte [Tue, 2 Oct 2012 10:15:22 +0000 (12:15 +0200)]
gradient: Add a private header file
Benjamin Otte [Tue, 2 Oct 2012 09:33:11 +0000 (11:33 +0200)]
cssimage: Only create fades if we are actually fading
Benjamin Otte [Tue, 2 Oct 2012 09:31:36 +0000 (11:31 +0200)]
cssimage: Make image transition a vfunc
Benjamin Otte [Mon, 1 Oct 2012 16:21:30 +0000 (18:21 +0200)]
css: Move special case code for border widths
We need to store the border widths independant of them being set to 0 by
border styles, because otherwise we'd need to track that dependency and
recompute on changes, and I don't want to add more entries to
GtkCssDependencies just for this special case.
By moving the code that does the setting to 0 from the compute stage to
the query stage, we can achieve this.
Now we need to just be aware that the actual value stored is not set to
0 when we use gtk_css_computed_values_get_value().
Alexander Larsson [Mon, 1 Oct 2012 08:02:01 +0000 (10:02 +0200)]
Make process_all_updates draw synchronously
By calling XSync in _gdk_x11_display_after_process_all_updates we
effectively make gdk rendering sync, which avoids problems with the
client animations running faster than the Xserver rendering, thus
filling up the X rendering pipes and essentially "locking up" the
Xserver (i.e. you can't even close the offending window because the
WM is starved too).
I verified this worked by making GtkSpinner paint multiple times on my
intel driver (which has some issue making this rendering slow atm),
and without this patch i get severe lag where even window dragging
stops for 5 seconds when i drag the mouse around. However, with the
patch everything is smooth.
https://bugzilla.gnome.org/show_bug.cgi?id=684639
Matthias Clasen [Mon, 1 Oct 2012 00:33:38 +0000 (20:33 -0400)]
XIM: Don't force random windows to become native
GDK_WINDOW_XID() has the side-effect of turning a window native;
this in turn can have unexpected effects such as black backgrounds.
Avoid this by using the XID of the toplevel.
https://bugzilla.gnome.org/show_bug.cgi?id=682395
Matthias Clasen [Mon, 1 Oct 2012 00:28:59 +0000 (20:28 -0400)]
Trivial typo fix
Benjamin Otte [Mon, 1 Oct 2012 14:06:33 +0000 (16:06 +0200)]
gtk-demo: Beautify a demo
Use auto for the background size instead of 100% to avoid uglyfying the
background byt blurring it when the window gets larger.
Benjamin Otte [Mon, 1 Oct 2012 13:51:58 +0000 (15:51 +0200)]
gtk-demo: Use explicit resource:// urls in CSS
... because we load the data from a GtkTreeView::changed callback, the
relative directory is cwd. And we want the resources...
Benjamin Otte [Mon, 1 Oct 2012 13:51:36 +0000 (15:51 +0200)]
gtk-demo: Add missing file to resources
Benjamin Otte [Mon, 1 Oct 2012 13:43:21 +0000 (15:43 +0200)]
widget: Move style context update out of vfunc
Otherwise the evil widgets that don't chain up their map and unmap
vfuncs will not get updated style contexts. This is in particular true
for GtkWindow and the CSS Theming / animated backgrounds demo in
gtk-demo.
Alexander Larsson [Mon, 1 Oct 2012 12:53:18 +0000 (14:53 +0200)]
broadway: Use binary websockets if available
Alexander Larsson [Mon, 1 Oct 2012 11:02:21 +0000 (13:02 +0200)]
broadway: Output message data directly to buffer
This cleans up the code, as well as allows later format
changes for e.g. binary websockets
Alexander Larsson [Mon, 1 Oct 2012 10:44:38 +0000 (12:44 +0200)]
broadway: Encode urls directly into message buffer
No need for a temporary buffer
Alexander Larsson [Mon, 1 Oct 2012 10:09:07 +0000 (12:09 +0200)]
broadway: Restructure output
Now we queue all output commands in a single buffer, to
ensure we send everything in a single op even for v7plus.
Alexander Larsson [Mon, 1 Oct 2012 09:50:54 +0000 (11:50 +0200)]
broadway: Fix indentation
Alexander Larsson [Mon, 1 Oct 2012 09:50:16 +0000 (11:50 +0200)]
broadway: Detect binary websockets support
Alexander Larsson [Mon, 1 Oct 2012 09:30:03 +0000 (11:30 +0200)]
broadway: Centralize cmd parsing
This clean up things, as well as prepares for new message formats
such as binary websockets.
Benjamin Otte [Mon, 1 Oct 2012 12:23:15 +0000 (14:23 +0200)]
stylecontext: Actually use superset matcher
... when looking up the needed changes.
This is what that matcher was actually written for, but it seems I never
hooked it in.
Benjamin Otte [Mon, 1 Oct 2012 11:10:44 +0000 (13:10 +0200)]
css: Add forgotten enum value
This broke compilation in
a7d213854460a7820d9665650a507081b9d196b7.
Benjamin Otte [Mon, 1 Oct 2012 11:09:49 +0000 (13:09 +0200)]
cssanimation: Don't store the end value in a CSS transition
Instead, query the intrinsic value at runtime.
Benjamin Otte [Mon, 1 Oct 2012 09:54:18 +0000 (11:54 +0200)]
treeview: Invalidate children properly
GtkTreeView still uses regions (yay!), so we need to invalidate the
regions when hiding/showing children, and not their siblings.
Benjamin Otte [Mon, 1 Oct 2012 09:48:50 +0000 (11:48 +0200)]
treeview: Fix computing child paths
We were adding the GtkButton class twice.
Benjamin Otte [Mon, 1 Oct 2012 08:32:59 +0000 (10:32 +0200)]
csscomputedvalues: Unset the section when setting a new value
Otherwise we end up with the wrong section if no new one is specified.
Cosimo Cecchi [Fri, 28 Sep 2012 16:49:22 +0000 (12:49 -0400)]
symboliccolor: fix a critical warning
This was introduced in
0cc32eae6219599882e7dc75115050ce77607887
Benjamin Otte [Fri, 28 Sep 2012 16:02:46 +0000 (18:02 +0200)]
css: Huge refactoring to avoid computing wrong values
Here's the shortest description of the bug I can come up with:
When computing values, we have 3 kinds of dependencies:
(1) other properties ("currentColor" or em values)
(2) inherited properties ("inherit")
(3) generic things from the theme (@keyframes or @define-color)
Previously, we passed the GtkStyleContext as an argument, because it
provided these 3 things using:
(1) _gtk_style_context_peek_property()
(2) _gtk_style_context_peek_property(gtk_style_context_get_parent())
(3) context->priv->cascade
However, this makes it impossible to lookup values other than the ones
accessible via _gtk_style_context_peek_property(). And this is exactly
what we are doing in gtk_style_context_update_cache(). So when the cache
updates encountered case (1), they were looking up the values from the
wrong style data.
So this large patch essentially does nothing but replace the
context argument in all compute functions with new arguments for the 3
cases above:
(1) values
(2) parent_values
(3) provider
We apparently have a lot of computing code.
Benjamin Otte [Fri, 28 Sep 2012 11:42:21 +0000 (13:42 +0200)]
symboliccolor: Change prototype of _gtk_symbolic_color_resolve_full()
We can juts pass a GtkStyleProviderPrivate, that one has the vfunc we
want already. So no need to pass vfuncs anymore.
Benjamin Otte [Thu, 27 Sep 2012 15:04:29 +0000 (17:04 +0200)]
css: Move declaration
... for future changes. This is just to check that compilation still
succeeds.
Benjamin Otte [Thu, 27 Sep 2012 14:43:24 +0000 (16:43 +0200)]
cssvalue: Remove unnecessary include
Benjamin Otte [Thu, 27 Sep 2012 14:24:30 +0000 (16:24 +0200)]
css: Don't crash when printing gradients
... in the fallback code. Instead print a FIXME.
Benjamin Otte [Thu, 27 Sep 2012 14:23:53 +0000 (16:23 +0200)]
cssvalue: Don't crash when printing NULL strings
A NULL string should be printed as "none".
Benjamin Otte [Thu, 27 Sep 2012 13:10:52 +0000 (15:10 +0200)]
section: Add _gtk_css_section_to_string()
Mostly for debugging pruposes, but use it for printing CSS errors in
GtkCssProvider, too.
Benjamin Otte [Thu, 27 Sep 2012 11:42:10 +0000 (13:42 +0200)]
window: Fail if the parent window and the visual don't match
They must be on the same screen.
Benjamin Otte [Wed, 26 Sep 2012 14:48:35 +0000 (16:48 +0200)]
stylecontext: Rebuild cached styles with correct classes/regions
Previously, we were using the default classes and regions. That's
obviously wrong.
Kristian Rietveld [Fri, 28 Sep 2012 04:50:13 +0000 (06:50 +0200)]
quartz: Fix garbage content when windows are initially mapped
The garbage would be visible if any widget enabled the toplevel
NSView's CALayer in order to do custom native rendering.
(cherry picked from commit
92ea94af5f1a4d0970628b58997192ccf74cab36)
Cosimo Cecchi [Thu, 27 Sep 2012 20:53:34 +0000 (16:53 -0400)]
tests: fix testtreecolumns not to segfault at startup
The class/object definitions have the wrong size, and we're not using
G_DEFINE_TYPE. This fixes the test segfaulting when opening it.
Alexander Larsson [Thu, 27 Sep 2012 17:24:31 +0000 (19:24 +0200)]
iconview: Render focus even in non-selected items
This is needed for the SELECTION_NONE mode where nothing is ever
selected, but its also needed for CTRL-<key> keynav that moves the
focus without changing the selection.
https://bugzilla.gnome.org/show_bug.cgi?id=684984
Stefano Facchini [Thu, 27 Sep 2012 14:44:19 +0000 (16:44 +0200)]
treeview: fix size of the dragged column header
Currently the GdkWindow used for dragging is created once when
the first drag starts, and the reused identical each time.
Instead, just recreate it for each drag, with the correct size.
Alexander Larsson [Thu, 27 Sep 2012 11:46:26 +0000 (13:46 +0200)]
Don't create GdkWindows with NULL parents
This is not multi-display safe, you always need to pick the right
parent based on which screen your widget is at.
Chun-wei Fan [Thu, 27 Sep 2012 09:37:01 +0000 (17:37 +0800)]
Update Visual C++ property sheets
-Make up for the missed headers to "install"
-"Install" the gtk3-demo program and data files more like the way it is
done with the autotools builds
Chun-wei Fan [Thu, 27 Sep 2012 09:21:03 +0000 (17:21 +0800)]
Update gtk3-demo Visual C++ projects
Include the missed source files...
Carles Ferrando [Tue, 25 Sep 2012 23:37:47 +0000 (01:37 +0200)]
[l10n] Updated Catalan (Valencian) translation
Gil Forcada [Tue, 25 Sep 2012 23:37:15 +0000 (01:37 +0200)]
[l10n] Updated Catalan translation
Matthias Clasen [Mon, 24 Sep 2012 23:22:12 +0000 (19:22 -0400)]
Bump version
Matthias Clasen [Mon, 24 Sep 2012 22:53:03 +0000 (18:53 -0400)]
Update installation instructions for 3.6
Matthias Clasen [Mon, 24 Sep 2012 22:51:51 +0000 (18:51 -0400)]
Update release notes for 3.6